package edu.scau.divineplace.config.mybatisplus;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: x1aolone
 * @Date: 2019/11/28 10:28
 */
@Configuration
public class PageConfig {

    /**
     * MybatisPlus分页插件
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}